function(name, headers, data){
    let namediv = "<div style='background-color:rgb(26,144,117);color:white;height:20px;text-align:left;padding:0px 0px 0px 20px;width:100%;font-weight:bold;'>" + name + "</div>";
    let output = namediv + "<table style='overflow:scroll;white-space:nowrap;width:100%;color:white' class='table-striped border border-dark shadow table-dark table-condensed'>";
    output += "<tr>";
    for(let i = 0; i < headers.length; i++){
      output += "<th style='background-color:#393485;color:white;height:40px;text-align:left;padding:0px 0px 0px 20px;width:" + headers[i]['size'] + "' onclick=\"sort_table(this)\">" + headers[i]['name'].toUpperCase() + "</th>";
    }
    output += "</tr>";
    for(let i = 0; i < data.length; i++){
      output += "<tr style='text-align:left;" + data[i]['row-style'] + "'>";
      for(let j = 0; j < headers.length; j++){
       if(data[i]['cell-style'].hasOwnProperty(headers[j])){
          output += "<td style='padding:0px 0px 0px 20px;" + data[i]['cell-style'][headers[j]['name']] + "'>" + data[i][headers[j]['name']] + "</td>";
       }
       else{
          output += "<td style='padding:0px 0px 0px 20px'>" + data[i][headers[j]['name']] + "</td>";
       }
      }
      output += "</tr>";
    }
    output += "</table>";
    return output;
  }